package com.lanhai.mind.beans;
 

/**
 * 小车装货信息
 * @author zhengwei
 *
 */
public class AgvMountBean {
	private int agvId;
	private boolean upFull;
	private boolean upHasTrans;
	
	private boolean downFull; 
	private boolean downHasTrans; 
	
	
	
	public int getAgvId() {
		return agvId;
	}



	public void setAgvId(int agvId) {
		this.agvId = agvId;
	}



	public boolean isUpFull() {
		return upFull;
	}



	public void setUpFull(boolean upFull) {
		this.upFull = upFull;
	}



	public boolean isUpHasTrans() {
		return upHasTrans;
	}



	public void setUpHasTrans(boolean upHasTrans) {
		this.upHasTrans = upHasTrans;
	}



	public boolean isDownFull() {
		return downFull;
	}



	public void setDownFull(boolean downFull) {
		this.downFull = downFull;
	}



	public boolean isDownHasTrans() {
		return downHasTrans;
	}



	public void setDownHasTrans(boolean downHasTrans) {
		this.downHasTrans = downHasTrans;
	}



	public void updateTransResult( boolean isSend,boolean isUp) { 
		 
		if(isSend) { 
			if(isUp) {
				//上层发货完成 
				upFull=false;;   //上空
				upHasTrans=true;  //上完成
			}else {
				//下层发货完成
				downFull=false;  //下空 
				downHasTrans=true; //下完成
			}
		}else {
			//小车收货完成 
			if(isUp) {
				//上层收货完成
				upFull=true; //上满
				upHasTrans=true ;
			}else {
				//下层收货完成
				downFull= true;//下满
				downHasTrans=true;
			}
		} 
	}
}
